package com.bdzl.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;

/**
 * Disease entity. @author MyEclipse Persistence Tools
 * 病种
 */
@Entity
@Table(name = "disease")
@DynamicUpdate(true)
public class Disease  {

	// Constructors

	// Fields

	private Integer id;
	private String name;//病名称
	private String information;//病种信息
	private Integer type;//1 轻疾病  2 重疾病   3特定疾病
	private Integer state;//0删除 1显示

	// Constructors

	/** default constructor */
	public Disease() {
	}

	/** full constructor */
	public Disease(String name, String information, Integer type,
			Integer state) {
		this.name = name;
		this.information = information;
		this.type = type;
		this.state = state;
	}

	// Property accessors
	@Id
	@GeneratedValue
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "information")
	public String getInformation() {
		return this.information;
	}

	public void setInformation(String information) {
		this.information = information;
	}

	@Column(name = "type")
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "state")
	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}


}
